package com.alit.face.koala.entity;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author litong
 * @date 2019年4月27日_上午10:59:53
 * @version 1.0
 * @desc 相机
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Entity
@Table(name = "koala_cemara")
public class KoalaCemara {
  public static final String _screen_token = "screen_token";
  public static final String _topic = "topic";
  @Id
  @GeneratedValue(strategy = GenerationType.IDENTITY)
  private Integer id;
  @Column(nullable = true)
  private String screen_token; // 主机回调中包含此参数
  private String location; // 摄像头所在位置
  private String tag; // 摄像头标签
  private String type; //发送类型,分为websocket和apollo-mq
  private String topic; // 发送到消息机的主题

  private Long lastUpdateTime; // 上次人脸识别回调的时间
}
